/**
 * Copyright (c) 2002-2011 旭鸣信息
 * All rights reserved. 
 * File：FunNodeDaoImpl.java
 * History:
 *       2012-1-13: Initially created, tangkf.
 */
package com.xteam.purview.service.impl;

import com.xteam.purview.entities.PurviewType;
import com.xteam.purview.service.AbsFace;
import com.xteam.purview.service.IPurviewTypeFace;

/**
 * @author tangkf  ---2012-1-13
 */
public class PurviewTypeFace extends AbsFace<PurviewType> implements IPurviewTypeFace {
	
	private PurviewTypeFace(){};
	
	private static PurviewTypeFace	instance	= new PurviewTypeFace();
	
	public static PurviewTypeFace getInstance(){
		return instance;
	}

	/**
	 * @see com.xteam.purview.service.IPurviewTypeFace#addType(com.xteam.purview.entities.PurviewType)
	 */
	public int addType(PurviewType type) {
		return super.save(type);
	}
	
	/**
	 * @see com.xteam.purview.service.IPurviewTypeFace#deleteType(java.lang.String[])
	 */
	public int deleteType(String[] tid) {
		return super.delBatch(PurviewType.class, PurviewType.PROP_TYPEID, tid);
	}
	
	/**
	 * @see com.xteam.purview.service.IPurviewTypeFace#editType(com.xteam.purview.entities.PurviewType)
	 */
	public int editType(PurviewType type) {
		return super.update(type);
	}
}
